﻿<Window
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:PieChart="clr-namespace:WpfChartingControlLibrary.PieChart;assembly=WpfChartingControlLibrary" 
        x:Class="WpfChartingControlLibraryTest.PieChartWindow1"
        Title="PieChartWindow1" Height="500" Width="500" Background="#FF7A2222">
    
    <Window.Resources>
        <!-- ItemContainerStyle with the Trigger for Selected 
        <Style x:Key="RedGlowItemContainer" TargetType="{x:Type ListBoxItem}">
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="{x:Type ListBoxItem}">                   
                        <ControlTemplate.Triggers>
                            <Trigger Property="IsMouseOver" Value="true">
                                <Setter TargetName="fdf" Property="Fill">
                                    <Setter.Value>
                                        <SolidColorBrush Color="Green"></SolidColorBrush>
                                    </Setter.Value>
                                </Setter>
                            </Trigger>
                        </ControlTemplate.Triggers>

                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>

        -->
        
    </Window.Resources>
    <DockPanel LastChildFill="True">
        <Button  DockPanel.Dock="Top" VerticalAlignment="Top" Click="Button_Click" >njlkn</Button>
 <!--<PieChart:PieSlice Background="AliceBlue" Visibility="Collapsed">
            <PieChart:PieSlice.Geometry >
                <CombinedGeometry GeometryCombineMode="Xor">
                    <CombinedGeometry.Geometry1>
                        <EllipseGeometry RadiusX="50" RadiusY="50" Center="75,75" />
                    </CombinedGeometry.Geometry1>
                    <CombinedGeometry.Geometry2>
                        <EllipseGeometry RadiusX="50" RadiusY="50" Center="125,75" />
                    </CombinedGeometry.Geometry2>
                </CombinedGeometry>


            </PieChart:PieSlice.Geometry>

        </PieChart:PieSlice>
        -->
        <PieChart:PieChartControl x:Name="pieChart" Margin="0" Background="AliceBlue" 
                                  SelectionMode="Single" SelectionChanged="pieChart_SelectionChanged_1"
                                  BorderThickness="0">
        </PieChart:PieChartControl>


    </DockPanel>
</Window>
